//
//  AddressManager.m
//  fashionbuyer
//
//  Created by ale tan on 2018/1/17.
//  Copyright © 2018年 ale tan. All rights reserved.
//

#import "AddressManager.h"

@implementation AddressManager

//选择地址
+ (void)chooseAddress:(ChooseAddress)chooseAddress{
    GetAddressRequest *request = [GetAddressRequest new];
    [request getAddressListWithComplete:^(id responseDic, BOOL result) {
        if (result) {
            
            NSMutableArray *addresses = [NSMutableArray arrayWithArray:(NSArray *)responseDic];
            
            FFPayOrderChooseAddressView *addressView = [FFPayOrderChooseAddressView chooseAddressViewWithAddresses:addresses selectedAddress:nil];
            
            [addressView setChooseAddress:chooseAddress];
            [addressView show];
        }
    }];
}

@end
